# -*- coding: utf-8 -*-

"""
@author: kai
@software: PyCharm
@file: part6.py 递归
@time: 2021/5/4:下午11:03
"""

import turtle
import random

p = turtle.Turtle()
p.speed(0)
turtle.colormode(255)
radius = 50

def circle():
    global radius
    if radius > 200:
        return
    radius += 1
    p.pencolor(random.randint(0,255),random.randint(0,255),random.randint(0,255))
    p.circle(radius)
    p.left(2)
    circle()

circle()